/**
 * 
 */
package org.gov.vis.master.gui;

import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import org.gov.vis.components.VISTextField;
import org.gov.vis.gui.VisBaseDialog;
import org.gov.vis.gui.util.GuiUtil;
import org.gov.vis.master.gui.listener.EditOthersListener;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author Vishwanath
 *
 */
public class EditOthersDialog extends VisBaseDialog{
	


	/**
	 * 
	 */
	private static final long serialVersionUID = 905303925514493522L;
	private JLabel lblCode;
	private JLabel lblOrganizationName;
	private JPanel pnlButton;
	private JLabel lblHeadquarter;
	private JLabel lblJurisdiction;
	private JPanel pnlMessages;
	private VISTextField txtFldJurisdiction;
	private JLabel lblMandal;
	private JLabel lblDistrict;
	private VISTextField txtFldDistrict;
	private VISTextField txtFldMandal;
	private VISTextField txtFldHeadQuarter;
	private VISTextField txtFldAIWorker;
	private JLabel lblNameOfAIWorker;
	private VISTextField txtFldOrg;
	private VISTextField txtFldCode;
	private JButton btnReset;
	private JButton btnSave;
	private JPanel pnlOthersMainPanel;
	private Object hidnObject;
	private String searchText;

	public EditOthersDialog(Frame owner, String title, boolean modal) {
		super(owner, title, modal);
		// TODO Auto-generated constructor stub
		initGUI();
		GuiUtil.CompCenterCords cords=GuiUtil.getCompCenterCords(500, 400);
		setBounds(cords.getX(), cords.getY(), 500, 400);	
		this.setSize(500,400);
	}

	private void initGUI() {
		// TODO Auto-generated method stub
		
		GridBagLayout thisLayout = new GridBagLayout();
		thisLayout.rowWeights = new double[] {0.1};
		thisLayout.rowHeights = new int[] {7};
		thisLayout.columnWeights = new double[] {0.1};
		thisLayout.columnWidths = new int[] {7};
		getContentPane().setLayout(thisLayout);
		{
			pnlOthersMainPanel = new JPanel();
			GridBagLayout pnlOthersMainPanelLayout = new GridBagLayout();
			pnlOthersMainPanelLayout.columnWidths = new int[] {7, 7, 7, 7, 7};
			pnlOthersMainPanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7};
			pnlOthersMainPanelLayout.columnWeights = new double[] {0.0, 0.0, 0.0, 0.1, 0.0};
			pnlOthersMainPanelLayout.rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
			getContentPane().add(pnlOthersMainPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
			pnlOthersMainPanel.setLayout(pnlOthersMainPanelLayout);
			{
				lblCode = new JLabel();
				pnlOthersMainPanel.add(lblCode, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblCode.setText(setFieldLabel(getResources().getString("dialog_label_othr_code"), true));
			}
			{
				lblOrganizationName = new JLabel();
				pnlOthersMainPanel.add(lblOrganizationName, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 30, 0, 0), 0, 0));
				lblOrganizationName.setText(setFieldLabel(getResources().getString("dialog_label_othr_nmeoforg"), true));
			}
			{
				pnlButton = new JPanel();
				pnlOthersMainPanel.add(pnlButton, new GridBagConstraints(3, 16, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				{
					btnSave = new JButton();
					pnlButton.add(btnSave);
					btnSave.setText(getResources().getString("dialog_button_update"));
					btnSave.addActionListener(new EditOthersListener(this));
				}
				{
					btnReset = new JButton();
					pnlButton.add(btnReset);
					btnReset.setText(getResources().getString("dialog_button_delete"));
					btnReset.addActionListener(new EditOthersListener(this));
				}
			}
			{
				txtFldCode = new VISTextField();
				pnlOthersMainPanel.add(txtFldCode, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				txtFldOrg = new VISTextField();
				pnlOthersMainPanel.add(txtFldOrg, new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				lblNameOfAIWorker = new JLabel();
				pnlOthersMainPanel.add(lblNameOfAIWorker, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblNameOfAIWorker.setText(setFieldLabel(getResources().getString("dialog_label_othr_nmeofai"), false));
			}
			{
				txtFldAIWorker = new VISTextField();
				pnlOthersMainPanel.add(txtFldAIWorker, new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				lblHeadquarter = new JLabel();
				pnlOthersMainPanel.add(lblHeadquarter, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblHeadquarter.setText(setFieldLabel(getResources().getString("dialog_label_othr_hq"), false));
			}
			{
				txtFldHeadQuarter = new VISTextField();
				pnlOthersMainPanel.add(txtFldHeadQuarter, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				lblJurisdiction = new JLabel();
				pnlOthersMainPanel.add(lblJurisdiction, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblJurisdiction.setText(setFieldLabel(getResources().getString("dialog_label_othr_jurid"), false));
			}
			{
				txtFldJurisdiction = new VISTextField();
				pnlOthersMainPanel.add(txtFldJurisdiction, new GridBagConstraints(3, 10, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				lblMandal = new JLabel();
				pnlOthersMainPanel.add(lblMandal, new GridBagConstraints(1, 12, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblMandal.setText(setFieldLabel(getResources().getString("dialog_label_othr_mandal"), false));
			}
			{
				txtFldMandal = new VISTextField();
				pnlOthersMainPanel.add(txtFldMandal, new GridBagConstraints(3, 12, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				lblDistrict = new JLabel();
				pnlOthersMainPanel.add(lblDistrict, new GridBagConstraints(1, 14, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				lblDistrict.setText(setFieldLabel(getResources().getString("dialog_label_othr_distrct"), false));
			}
			{
				txtFldDistrict = new VISTextField();
				pnlOthersMainPanel.add(txtFldDistrict, new GridBagConstraints(3, 14, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				{
					pnlMessages = new JPanel();
					GridBagLayout jPanel1Layout = new GridBagLayout();
					pnlOthersMainPanel.add(pnlMessages, new GridBagConstraints(1, 1, 3, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jPanel1Layout.rowWeights = new double[] {0.1};
					jPanel1Layout.rowHeights = new int[] {7};
					jPanel1Layout.columnWeights = new double[] {0.1};
					jPanel1Layout.columnWidths = new int[] {7};
					pnlMessages.setLayout(jPanel1Layout);
				}
				
			}
		}
	}

	public JPanel getjPanel1() {
		return pnlMessages;
	}

	/**
	 * @return the lblCode
	 */
	public JLabel getLblCode() {
		return lblCode;
	}

	/**
	 * @param lblCode the lblCode to set
	 */
	public void setLblCode(JLabel lblCode) {
		this.lblCode = lblCode;
	}

	/**
	 * @return the lblOrganizationName
	 */
	public JLabel getLblOrganizationName() {
		return lblOrganizationName;
	}

	/**
	 * @param lblOrganizationName the lblOrganizationName to set
	 */
	public void setLblOrganizationName(JLabel lblOrganizationName) {
		this.lblOrganizationName = lblOrganizationName;
	}

	/**
	 * @return the pnlButton
	 */
	public JPanel getPnlButton() {
		return pnlButton;
	}

	/**
	 * @param pnlButton the pnlButton to set
	 */
	public void setPnlButton(JPanel pnlButton) {
		this.pnlButton = pnlButton;
	}

	/**
	 * @return the lblHeadquarter
	 */
	public JLabel getLblHeadquarter() {
		return lblHeadquarter;
	}

	/**
	 * @param lblHeadquarter the lblHeadquarter to set
	 */
	public void setLblHeadquarter(JLabel lblHeadquarter) {
		this.lblHeadquarter = lblHeadquarter;
	}

	/**
	 * @return the lblJurisdiction
	 */
	public JLabel getLblJurisdiction() {
		return lblJurisdiction;
	}

	/**
	 * @param lblJurisdiction the lblJurisdiction to set
	 */
	public void setLblJurisdiction(JLabel lblJurisdiction) {
		this.lblJurisdiction = lblJurisdiction;
	}

	/**
	 * @return the txtFldJurisdiction
	 */
	public VISTextField getTxtFldJurisdiction() {
		return txtFldJurisdiction;
	}

	/**
	 * @param txtFldJurisdiction the txtFldJurisdiction to set
	 */
	public void setTxtFldJurisdiction(VISTextField txtFldJurisdiction) {
		this.txtFldJurisdiction = txtFldJurisdiction;
	}

	/**
	 * @return the lblMandal
	 */
	public JLabel getLblMandal() {
		return lblMandal;
	}

	/**
	 * @param lblMandal the lblMandal to set
	 */
	public void setLblMandal(JLabel lblMandal) {
		this.lblMandal = lblMandal;
	}

	/**
	 * @return the lblDistrict
	 */
	public JLabel getLblDistrict() {
		return lblDistrict;
	}

	/**
	 * @param lblDistrict the lblDistrict to set
	 */
	public void setLblDistrict(JLabel lblDistrict) {
		this.lblDistrict = lblDistrict;
	}

	/**
	 * @return the txtFldDistrict
	 */
	public VISTextField getTxtFldDistrict() {
		return txtFldDistrict;
	}

	/**
	 * @param txtFldDistrict the txtFldDistrict to set
	 */
	public void setTxtFldDistrict(VISTextField txtFldDistrict) {
		this.txtFldDistrict = txtFldDistrict;
	}

	/**
	 * @return the txtFldMandal
	 */
	public VISTextField getTxtFldMandal() {
		return txtFldMandal;
	}

	/**
	 * @param txtFldMandal the txtFldMandal to set
	 */
	public void setTxtFldMandal(VISTextField txtFldMandal) {
		this.txtFldMandal = txtFldMandal;
	}

	/**
	 * @return the txtFldHeadQuarter
	 */
	public VISTextField getTxtFldHeadQuarter() {
		return txtFldHeadQuarter;
	}

	/**
	 * @param txtFldHeadQuarter the txtFldHeadQuarter to set
	 */
	public void setTxtFldHeadQuarter(VISTextField txtFldHeadQuarter) {
		this.txtFldHeadQuarter = txtFldHeadQuarter;
	}

	/**
	 * @return the txtFldAIWorker
	 */
	public VISTextField getTxtFldAIWorker() {
		return txtFldAIWorker;
	}

	/**
	 * @param txtFldAIWorker the txtFldAIWorker to set
	 */
	public void setTxtFldAIWorker(VISTextField txtFldAIWorker) {
		this.txtFldAIWorker = txtFldAIWorker;
	}

	/**
	 * @return the lblNameOfAIWorker
	 */
	public JLabel getLblNameOfAIWorker() {
		return lblNameOfAIWorker;
	}

	/**
	 * @param lblNameOfAIWorker the lblNameOfAIWorker to set
	 */
	public void setLblNameOfAIWorker(JLabel lblNameOfAIWorker) {
		this.lblNameOfAIWorker = lblNameOfAIWorker;
	}

	/**
	 * @return the txtFldOrg
	 */
	public VISTextField getTxtFldOrg() {
		return txtFldOrg;
	}

	/**
	 * @param txtFldOrg the txtFldOrg to set
	 */
	public void setTxtFldOrg(VISTextField txtFldOrg) {
		this.txtFldOrg = txtFldOrg;
	}

	/**
	 * @return the txtFldCode
	 */
	public VISTextField getTxtFldCode() {
		return txtFldCode;
	}

	/**
	 * @param txtFldCode the txtFldCode to set
	 */
	public void setTxtFldCode(VISTextField txtFldCode) {
		this.txtFldCode = txtFldCode;
	}

	/**
	 * @return the btnReset
	 */
	public JButton getBtnReset() {
		return btnReset;
	}

	/**
	 * @param btnReset the btnReset to set
	 */
	public void setBtnReset(JButton btnReset) {
		this.btnReset = btnReset;
	}

	/**
	 * @return the btnSave
	 */
	public JButton getBtnSave() {
		return btnSave;
	}

	/**
	 * @param btnSave the btnSave to set
	 */
	public void setBtnSave(JButton btnSave) {
		this.btnSave = btnSave;
	}

	/**
	 * @return the pnlOthersMainPanel
	 */
	public JPanel getPnlOthersMainPanel() {
		return pnlOthersMainPanel;
	}

	/**
	 * @param pnlOthersMainPanel the pnlOthersMainPanel to set
	 */
	public void setPnlOthersMainPanel(JPanel pnlOthersMainPanel) {
		this.pnlOthersMainPanel = pnlOthersMainPanel;
	}


	/**
	 * @param lblrRsultCode the lblrRsultCode to set
	 */
	public void setLblrRsultCode(JLabel lblrRsultCode) {
	}


	/**
	 * @param resultPanel the resultPanel to set
	 */
	public void setResultPanel(JPanel resultPanel) {
	}

	public Object getHidnObject() {
		return hidnObject;
	}

	public void setHidnObject(Object hidnObject) {
		this.hidnObject = hidnObject;
	}

	/**
	 * @return the searchText
	 */
	public String getSearchText() {
		return searchText;
	}

	/**
	 * @param searchText the searchText to set
	 */
	public void setSearchText(String searchText) {
		this.searchText = searchText;
	}

	
}
